import http from "../utils/http";
//获取仓库数据
export function warehouse(params) {
  return http.post("/by-warehouse/select", params);
}
// 系统端库位管理
export function warehouse_select(params) {
  return http.post("/by-warehouse/select", params);
}
// 查询所有仓库数据
export function getWhList(params) {
  return http.post("/sys-store-house/getWhList/" + params);
}
// 客户端查询仓库数据
export function getByCrsWh() {
  return http.post("/sys-store-house/getByCrsWh");
}
//删除上传文件
export function removefile(params) {
  return http.post("/by-file/removeBatchFile", params);
}
//上传文件
export function uploadFile(params) {
  return http.post("/by-file/uploadFile", params);
}
//生成条形码
export function barcode(params) {
  return http.blob("by-barcode/picture?+", params);
}
//输SKU条形码出为PDF
export function SKU_PDF6030(params) {
  return http.blob("/by-barcode/pdf/6030/?" + params);
}
//输出为SKU条形码PDF
export function SKU_PDFA4(params) {
  return http.blob("/by-barcode/pdf/A4?" + params);
}

//根据业务状态获取树形结构的数据
export function treeTagDictionary(params) {
  return http.post("/sys-tag-dictionary/treeTagDictionary", params);
}

// 查询SKU列表
export function sku_select(params) {
  return http.post("/by-sku/select", params);
}
// 代发入库申请下载外箱标
export function box_tags(params) {
  return http.blobJson("/by-warehousing-apply/box-tags/" + params);
}
// 转运入库申请下载外箱标
export function downTransLabel(WarehousingApplyId) {
  return http.blobJson("/by-transfer-apply/print/" + WarehousingApplyId);
}
// 转运出库申请下载外箱标
export function downTransLabelOut(WarehousingApplyId) {
  return http.blobJson("/by-transfer-warehousing-out-apply/print/" + WarehousingApplyId);
}
// 记录登录时长
export function addOnlineTime() {
  return http.get("/login/addOnlineTime");
}
// 查询客户编号
export function accGetCrs() {
  return http.get("/app-account/getCrs");
}
// 查询所属账号物流商
export function tenantService(params) {
  return http.post("/sys-logistics-service-item-tenant/select/tenantAddNotAdd/" + params);
}
// 根据物流商查询物流账号
export function selectTenantIdAllServerName(params, ssiid, tenantId) {
  return http.post("/sys-logistics-service-item-tenant/select/selectTenantIdAllServerName/" + params + "/" + ssiid + '/' + tenantId);
}
// 根据查询全部物流商
export function selectAllLogistics() {
  return http.get("/sys-logistics-service-item-tenant/select/selectAllLogistics");
}



// 根据邮编查询常用地址
export function postalCode(params) {
  return http.get("/by-waybill-message/postalCode/" + params);
}
